* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.auth-card::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.tab-group {
    display: flex;
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f6fa;
}

.tab-item {
    flex: 1;
    padding: 12px;
    text-align: center;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-item.active {
    background: #3498db;
    color: white;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 35px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group .icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 15px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.social-login {
    margin-top: 25px;
    text-align: center;
}

.social-login p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 13px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e0e0e0;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.wechat {
    background: #07C160;
}

.social-icon.qq {
    background: #12B7F5;
}

.social-icon.weibo {
    background: #E6162D;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #7f8c8d;
}

.form-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    body {
        align-items: flex-start;
    }

    .container {
        padding: 0;
        height: 100%;
    }

    .auth-card {
        border-radius: 0;
        height: 100%;
        max-height: none;
        padding: 20px;
    }

    .auth-header {
        margin-top: 20px;
    }

    .form-group input {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.5s ease-out;
}

/* 错误提示样式 */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error input {
    border-color: #e74c3c;
}

.form-group.error .error-message {
    display: block;
} 